package com.ruoyi.pingan.fymodule.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 平安分账订单明细
 * </p>
 *
 * @author wangy
 * @since 2025-06-18
 */
@Data
@TableName("sxo_safety_order_detail")
@Schema(name = "SxoSafetyOrderDetail对象", description = "平安分账订单冻结充值明细")
public class SxoSafetyOrderDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @Schema(description = "平安分账订单id")
    @TableField("safety_order_id")
    private String safetyOrderId;

    @Schema(description = "商品id")
    @TableField("goods_id")
    private String goodsId;

    @Schema(description = "子订单充值子账户(充值入账的见证子账户)")
    @TableField("sub_order_fill_sub_acct_no")
    private String subOrderFillSubAcctNo;

    @Schema(description = "子订单充值金额")
    @TableField("sub_order_fill_amt")
    private String subOrderFillAmt;

    @Schema(description = "子订单充值手续费")
    @TableField("sub_order_fill_commission")
    private String subOrderFillCommission;

    @Schema(description = "子订单充值订单号(原支付子订单号)")
    @TableField("sub_fill_order_no")
    private String subFillOrderNo;

    @Schema(description = "分账商家金额")
    @TableField("acct_amt")
    private String acctAmt;

    @Schema(description = "分账平台服务费金额")
    @TableField("ser_acct_amt")
    private String serAcctAmt;

    @Schema(description = "分账平安手续费金额")
    @TableField("ser_acct_pa_amt")
    private String serAcctPaAmt;

    @Schema(description = "优惠金额")
    @TableField("coupon")
    private String coupon;

    @Schema(description = "分账比例ID")
    @TableField("ration_id")
    private String rationId;

    @Schema(description = "比例名称")
    @TableField("ration_name")
    private String rationName;

    @Schema(description = "平安手续费比例")
    @TableField("ration_pa")
    private String rationPa;


    @Schema(description = "商家比例")
    @TableField("ration_shop")
    private String rationShop;

    @Schema(description = "子订单充值描述")
    @TableField("sub_order_fill_desc")
    private String subOrderFillDesc;

    @Schema(description = "子订单充值备注")
    @TableField("sub_order_fill_remark")
    private String subOrderFillRemark;
}
